<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title>Graduate School Application - Applicant Information</title>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<link rel="stylesheet" type="text/css" href="../resource/styleCSS.css" />
</head>
<body>
	<%
		// Get Request Parameter
		String address = request.getParameter("address"); 
		String city = request.getParameter("city");
		String zipcode_str = request.getParameter("zipcode");
		Integer zipcode = (zipcode_str == null)? -1 : Integer.parseInt(zipcode_str);
		String countrycode_str = request.getParameter("countrycode");
		Integer countrycode = (countrycode_str ==  null)? -1 : Integer.parseInt(countrycode_str);
		String areacode_str = request.getParameter("areacode");
		Integer areacode = (areacode_str == null)? -1 : Integer.parseInt(areacode_str);
		String number_str = request.getParameter("number");
		Integer number = (number_str == null)? -1 : Integer.parseInt(number_str);
	
		// Set Session Attributes for address/phone number
		session.setAttribute("address", address);
		session.setAttribute("city", city);
		session.setAttribute("zipcode", zipcode);
		session.setAttribute("areacode", areacode);
		session.setAttribute("number", number);
		session.setAttribute("countrycode", countrycode);
		
		String fname = (String)session.getAttribute("fname");
		String lname = (String)session.getAttribute("lname");
		String mname = (String)session.getAttribute("mname");
		String citizen = (String)session.getAttribute("citizen");
		String residence = (String)session.getAttribute("residence");
	%>
	
	<p class="sansserif">
	<div class="container">
	<div class="center_div">
		<div class="colmask threecol">
		<div class="colmid">
		<div class="colleft">
			<div class="bodycol">
				<p>Applicant: <i><%= fname%> <%= mname%> <%= lname%></i></p> 
				<p>Citizenship: <i><%= citizen%></i></p>
				<p>Country of Residence: <i><%= residence%></i></p> 
				<p>Address: <i><%= address%></i></p>
				<p>City: <i><%= city%></i> Zip Code: <i><%= zipcode%></i></p>
				<p>Telephone: <i><%= areacode %> <%= number%></i> Country Code: <i><%= countrycode%></i></p>
				<br>
			</div>
			<div class="sidecol">
				<p><a href="../invalidate.jsp">Logout</a></p>
			</div>
		</div>
		</div>
		</div>
		<div style="clear:both;"></div>
		
		<p><b>Select Residency</b></p>	
		<form method="GET" action="degreesChooseLocationJSP.jsp">
			<ul class="none">
			<li>US Permanent Resident:
			<input type="radio" name="residency" value="true"/> </li>
		   	<li>Non-Resident:
		   	<input type="radio" name="residency" value="false"/> </li>
		   	</ul>
		   	<input type="submit" value="Submit"/>
		</form>
	</div>
	</div>
</body>
</html>